package com.example.yskjproject.model;

import com.example.yskjproject.databinding.BaseActivityBinding;
import com.example.yskjproject.helper.SeriaPortHelper;

public class GlobalStateManager {
    private static GlobalStateManager instance;
    private SeriaPortHelper seriaPortHelper;

    private String disKg;//公斤
    private String modeState;//模式
    private String currentState;//当前是否开始状态
    private String singleModeState;//是否单人模式
    private boolean isVisible;//是否隐藏面板
    private String pauseStateInfo;//面板中说明信息
    private String rightDisKg;
    private String rightModeState;
    private String rightCurrentState;
    private String rightSingleModeState;
    private boolean rightIsVisible;
    private String rightPauseStateInfo;
    private int leftPosition;
    private int rightPosition;
    private int rightLeftPosition;
    private int rightRightPosition;
    private BaseActivityBinding baseActivityBinding;

    public BaseActivityBinding getBaseActivityBinding() {
        return baseActivityBinding;
    }

    public void setBaseActivityBinding(BaseActivityBinding baseActivityBinding) {
        this.baseActivityBinding = baseActivityBinding;
    }

    public int getLeftPosition() {
        return leftPosition;
    }

    public void setLeftPosition(int leftPosition) {
        this.leftPosition = leftPosition;
    }

    public int getRightPosition() {
        return rightPosition;
    }

    public void setRightPosition(int rightPosition) {
        this.rightPosition = rightPosition;
    }

    public int getRightLeftPosition() {
        return rightLeftPosition;
    }

    public void setRightLeftPosition(int rightLeftPosition) {
        this.rightLeftPosition = rightLeftPosition;
    }

    public int getRightRightPosition() {
        return rightRightPosition;
    }

    public void setRightRightPosition(int rightRightPosition) {
        this.rightRightPosition = rightRightPosition;
    }

    public String getPauseStateInfo() {
        return pauseStateInfo;
    }

    public void setPauseStateInfo(String pauseStateInfo) {
        this.pauseStateInfo = pauseStateInfo;
    }

    public String getRightPauseStateInfo() {
        return rightPauseStateInfo;
    }

    public void setRightPauseStateInfo(String rightPauseStateInfo) {
        this.rightPauseStateInfo = rightPauseStateInfo;
    }

    public String getDisKg() {
        return disKg;
    }

    public void setDisKg(String disKg) {
        this.disKg = disKg;
    }

    public String getModeState() {
        return modeState;
    }

    public void setModeState(String modeState) {
        this.modeState = modeState;
    }

    public String getCurrentState() {
        return currentState;
    }

    public void setCurrentState(String currentState) {
        this.currentState = currentState;
    }


    public boolean isVisible() {
        return isVisible;
    }

    public void setVisible(boolean visible) {
        isVisible = visible;
    }

    public String getRightDisKg() {
        return rightDisKg;
    }

    public void setRightDisKg(String rightDisKg) {
        this.rightDisKg = rightDisKg;
    }

    public String getRightModeState() {
        return rightModeState;
    }

    public void setRightModeState(String rightModeState) {
        this.rightModeState = rightModeState;
    }

    public String getRightCurrentState() {
        return rightCurrentState;
    }

    public void setRightCurrentState(String rightCurrentState) {
        this.rightCurrentState = rightCurrentState;
    }

    public String getSingleModeState() {
        return singleModeState;
    }

    public void setSingleModeState(String singleModeState) {
        this.singleModeState = singleModeState;
    }

    public String getRightSingleModeState() {
        return rightSingleModeState;
    }

    public void setRightSingleModeState(String rightSingleModeState) {
        this.rightSingleModeState = rightSingleModeState;
    }

    public boolean isRightIsVisible() {
        return rightIsVisible;
    }

    public void setRightIsVisible(boolean rightIsVisible) {
        this.rightIsVisible = rightIsVisible;
    }

    public SeriaPortHelper getSeriaPortHelper() {
        return seriaPortHelper;
    }

    public void setSeriaPortHelper(SeriaPortHelper seriaPortHelper) {
        this.seriaPortHelper = seriaPortHelper;
    }

    public static GlobalStateManager getInstance() {
        if (instance == null) {
            instance = new GlobalStateManager();
        }
        return instance;
    }

    private GlobalStateManager() {
        seriaPortHelper = new SeriaPortHelper();
    }
}
